﻿using BCEntity.TMS.Agent.AgentCurrentlyProtocolAttachment;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCData.TMS.Agent.AgentCurrentlyProtocolAttachment
{
    /// <summary>
    /// 代理商现行协议附件
    /// </summary>
    public interface IAgentCurrentlyProtocolAttachmentData
    {
        /// <summary>
        /// 添加代理商现行协议附件
        /// </summary>
        /// <param name="entities">代理商现行协议附件信息</param>
        /// <returns></returns>
        Task<int> InsertAll(List<AgentCurrentlyProtocolAttachmentEntity> entities);

        /// <summary>
        /// 删除代理商现行协议附件
        /// </summary>
        /// <param name="agentCurrentlyProtocolId">代理商现行协议Id</param>
        /// <returns></returns>
        Task<int> Delete(long agentCurrentlyProtocolId);

        /// <summary>
        /// 获取代理商现行协议附件
        /// </summary>
        /// <param name="agentCurrentlyProtocolIds">代理商现行协议Id</param>
        /// <returns></returns>
        Task<IEnumerable<AgentCurrentlyProtocolAttachmentEntity>> GetListByIds(List<long> agentCurrentlyProtocolIds);

        /// <summary>
        /// 获取代理商现行协议附件
        /// </summary>
        /// <param name="agentCurrentlyProtocolId">代理商现行协议Id</param>
        /// <returns></returns>
        Task<IEnumerable<AgentCurrentlyProtocolAttachmentEntity>> GetList(long agentCurrentlyProtocolId);
    }
}
